﻿using System;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.Driver.DriverExamine
{
    /// <summary>
    /// 司机考试试卷
    /// </summary>
    public class DriverExamineMarkRequestDto
    {
        /// <summary>
        /// 试卷Id
        /// </summary>
        [Display(Name = "试卷编号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public long PaperId { get; set; }

        /// <summary>
        /// 正确答案数量
        /// </summary>
        [Display(Name = "正确答案数量")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int CorrectNumber { get; set; }

        /// <summary>
        /// 答错题目数量
        /// </summary>
        [Display(Name = "答错题目数量")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int ErrorNumber { get; set; }

        /// <summary>
        /// 成绩
        /// </summary>
        [Display(Name = "成绩")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int Mark { get; set; }

        /// <summary>
        /// 司机
        /// </summary>
        [Display(Name = "司机")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public long DriverId { get; set; }
    }
}

